var item1 = document.getElementById("item1");
var item2 = document.getElementById("item2");
var item3 = document.getElementById("item3");
var item4 = document.getElementById("item4");
var item5 = document.getElementById("item5");
var item6 = document.getElementById("item6");
var item11 = document.getElementById("item11");

document.getElementById("StallInfoAdd").addEventListener("click",SIA)
document.getElementById("StallInfoSearch").addEventListener("click",SIS)
document.getElementById("Regular-user").addEventListener("click",RU);
document.getElementById("CarManagementInfo").addEventListener("click",CMI);
document.getElementById("Inbound-login").addEventListener("click",IL);
document.getElementById("Outbound-statistics").addEventListener("click",OS);
document.getElementById("Change-password").addEventListener("click",CP);

// 车位信息查询
function SIS(){
    if(item1.style.display == "block"){
        item1.style.display = "block";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }else{
        item1.style.display = "block";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }
}

// 车位信息添加
function SIA(){
    if(item2.style.display == "block"){
        item1.style.display = "none";
        item2.style.display = "block";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }else{
        item1.style.display = "none";
        item2.style.display = "block";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }
}

// 固定用户注册发卡
function RU(){
    if(item3.style.display == "block"){
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "block";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }else{
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "block";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }
}

// 管理车辆信息
function CMI(){
    if(item4.style.display == "block"){
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "block";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }else{
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "block";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "none";
    }
}

// 进站登录
function IL(){
    if(item5.style.display == "block"){
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "block";
        item6.style.display = "none";
        item11.style.display = "none";
    }else{
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "block";
        item6.style.display = "none";
        item11.style.display = "none";
    }
}

// 出站统计
function OS(){
    if(item6.style.display == "block"){
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "block";
        item11.style.display = "none";
    }else{
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "block";
        item11.style.display = "none";
    }
}

// 修改密码
function CP(){
    if(item11.style.display == "block"){
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "block";
    }else{
        item1.style.display = "none";
        item2.style.display = "none";
        item3.style.display = "none";
        item4.style.display = "none";
        item5.style.display = "none";
        item6.style.display = "none";
        item11.style.display = "block";
    }
}